import utils from '@/assets/js/utils';

export default {
  promotionGiftItemSaveBatch: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionGiftItem/saveBatch', callback);
  },

  promotionGiftItemFindAll: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionGiftItem/findAll', callback);
  },

  getProductListV2: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/product/getProductList', callback);
  },

  saveBatchV2: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/product/saveBatchV2', callback);
  },

  reloadMutexV2: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/product/reloadMutex', callback);
  },

  mutexProductDetailList: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/product/queryMutexPromotionMerchantProductList', callback);
  },

  queryTagList: function(data, callback) {
    utils.request.httpExecute(data, '', callback);
  },

  promotionGiftItemFindByPage: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionGiftItem/listByPage', callback);
  },

  promotionDeepCopy: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotion/deepCopy', callback);
  },

  promotionSaveTemplate: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotion/saveTemplate', callback);
  },

  //保存模板for单一活动
  savePromotionSingleTemplate: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionSingle/saveTemplate', callback);
  },

  couponQueryConfigPage: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/coupon/query-config-page', callback);
  },

  promotionGiftItemUpdate: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionGiftItem/update', callback);
  },

  promotionGiftItemDeleteById: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionGiftItem/deleteById', callback);
  },

  promotionLimitRuleInsert: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionLimitRule/insert', callback);
  },

  promotionMerchantProductDeleteBatch: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionMerchantProduct/deleteBatch', callback);
  },

  promotionSpuPage: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/goods/query/spuPage', callback);
  },

  saveBatchV3: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionMerchantProduct/saveBatch', callback);
  },

  getProductListV3: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionMerchantProduct/getProductList', callback);
  },

  promotionMerchantProductDelete: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionMerchantProduct/deleteProductV2', callback);
  },

  promotionMerchantProductAddAll: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionMerchantProduct/addAllProduct', callback);
  },

  promotionSkuPage: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/goods/query/skuPage', callback);
  },

  promotionGiftItemCountByPromotionId: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionGiftItem/countByPromotionId', callback);
  },
  
  thirdPartyJumpLinks: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/marketConfig/thirdPartyJumpLinks', callback);
  },
  
  promotionSkuPageByPromotionId: function(data, callback) {
    utils.request.httpExecute(data, 'jic-product/productList/queryProductPageByStoreId', callback);
  },

  promotionGiftItemCheckTimeliness: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionGiftItem/checkTimeliness', callback);
  },

  promotionSpuPageByPromotionId: function(data, callback) {
    utils.request.httpExecute(data, 'jic-product/productManagement/queryShopPage', callback);
  },

  getShopInfo: function(data, callback) {
    utils.request.httpExecute(data, 'jic-product/productManagement/getShopInfo', callback);
  },

  getStoreIdsByPromotionId: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/promotionMerchantProduct/getStoreIdsByPromotionId', callback);
  },


  getDeptJumpLinks: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/marketConfig/getDeptJumpLinks', callback);
  },
  largeTurntableTemplateListByPage: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/largeTurntableTemplate/listByPage', callback);
  },

  largeTurntableTemplateDetail: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/largeTurntableTemplate/detail', callback);
  },

  largeTurntableTemplateDelete: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/largeTurntableTemplate/delete', callback);
  },

  largeTurntableTemplateCreateOrUpdate: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/largeTurntableTemplate/createOrUpdate', callback);
  },

  largeTurntableTemplateFindAll: function(data, callback) {
    utils.request.httpExecute(data, 'jic-market/largeTurntableTemplate/findAll', callback);
  },
}
